package com.tempjob.common.businesss.mongo.entity;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionField;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.IdTypeEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 街道
 * @TableName region_street
 */
@CollectionName(value ="region_street")
@Data
public class RegionStreet implements Serializable {

    @ID(type = IdTypeEnum.OBJECT_ID)
    @CollectionField("_id")
    private String id;

    @CollectionField(value = "code")
    private Long code;

    /**
     *
     */
    @CollectionField(value = "name")
    private String name;

    /**
     *
     */
    @CollectionField(value = "initials")
    private String initials;

    /**
     *
     */
    @CollectionField(value = "area_code")
    private Long areaCode;

    /**
     *
     */
    @CollectionField(value = "city_code")
    private Long cityCode;

    /**
     *
     */
    @CollectionField(value = "province_code")
    private Long provinceCode;

    /**
     *
     */
    @CollectionField(value = "update_time")
    private Date updateTime;

    /**
     *
     */
    @CollectionField(value = "center")
    private Object center;

    /**
     *
     */
    @CollectionField(value = "polyline")
    private Object polyline;

    @CollectionField(exist = false)
    private List<RegionCommunity> children;

    @CollectionField(exist = false)
    private static final long serialVersionUID = 1L;
}
